package br.jus.tjpe.listener;

import javax.ejb.EJB;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import br.jus.tjpe.negocio.TipoParteServico;

/**
 * Application Lifecycle Listener implementation class ImportListener
 *
 */
public class ImportListener implements ServletContextListener {

	@EJB
	private TipoParteServico tipoParteServico;
	
    /**
     * Default constructor. 
     */
    public ImportListener() {
        // TODO Auto-generated constructor stub
    }

	/**
     * @see ServletContextListener#contextInitialized(ServletContextEvent)
     */
    public void contextInitialized(ServletContextEvent sce) {
    	this.tipoParteServico.gerarDados();
    }

	/**
     * @see ServletContextListener#contextDestroyed(ServletContextEvent)
     */
    public void contextDestroyed(ServletContextEvent sce) {
        // TODO Auto-generated method stub
    }
	
}
